package com.koron.bean.system.post.query;

import cn.hutool.core.collection.CollUtil;
import com.koron.bean.system.post.dto.AccountOrgDto;
import com.koron.bean.system.post.vo.PostUserVo;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.util.List;

/**
 * @ClassName query
 * @description
 * @Author zhouj
 * @Date 2022/1/13 9:22
 */
@Data
@ApiModel("岗位-人员Query表")
public class PostUserQuery extends PostUserVo {

    @ApiModelProperty("岗位idList查询条件")
    private List<String> postIdList;

    @ApiModelProperty("岗位nameList查询条件")
    private List<String> postNameList;

    @ApiModelProperty("组织idList查询条件")
    private List<String> orgIdList;

    @ApiModelProperty("组织名称List查询条件")
    private List<String> orgNameList;

    @ApiModelProperty("父级组织idList查询条件")
    private List<String> parentOrgIdList;

    @ApiModelProperty("父级组织名称List查询条件")
    private List<String> parentOrgNameList;

    @ApiModelProperty("账号列表")
    private List<String> userAccountList;

    public PostUserQuery() {
    }

    public PostUserQuery(String account) {
        List<String> userAccountList = CollUtil.newArrayList(account);
        this.userAccountList = userAccountList;
    }

    @ApiModelProperty("账号组织列表")
    private List<AccountOrgDto> accountOrgDtos;

}
